
current_conf="192.168.126.137:8200:0,192.168.126.137:8201:0,192.168.126.137:8202:0"

leader=("192.168.126.137:8200:0" "192.168.126.137:8201:0" "192.168.126.137:8202:0")

group_count=5

for((i=0; i<${group_count}; i++,j=i%3));do
   echo "braft_cli  transfer_leader --group=$i --peer=${leader[j]} --conf=$current_conf"
   braft_cli  transfer_leader --group=group_$i --peer=${leader[j]} --conf=$current_conf

done
